from rest_framework.serializers import ModelSerializer
from .models import Carousel,Goods,HotGoods

# 轮播图序列化器
class CarouselSer(ModelSerializer):
    class Meta:
        model = Carousel
        fields = "__all__"

# 商品序列化器
class GoodsSer(ModelSerializer):
    class Meta:
        model = Goods
        fields = "__all__"


# 商品序列化器
class HotGoodsSer(ModelSerializer):
    class Meta:
        model = HotGoods
        fields = "__all__"